<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="Cynthia项目缺陷管理系统，拥有表单流程化设计，可视化拖动布局等功能，提供项目管理，缺陷管理，，统计，查询等服务，是您项目上的好帮手！">
<meta name="Keywords" content="Cynthia,BUG管理,项目管理 ,缺陷管理,任务管理,BUG,缺陷,开源">
<title>Cynthia 欢迎您!</title>
<link href="../lib/bootstrap2/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="../lib/bootstrap2/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
<link href="../lib/g_bootstrap/css/google-bootstrap.css" rel="stylesheet" type="text/css">
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<link href="../lib/jquery.plugins/tablesorter/style.css" rel="stylesheet" type="text/css" />  
<link href='../lib/select2/select2.css' rel="stylesheet" style="text/css">

<script type="text/javascript" src='../lib/jquery/jquery-1.9.3.min.js'></script>
<script type="text/javascript" src='../lib/bootstrap2/js/bootstrap.cynthia.min.js'></script>
<script type="text/javascript" src="../js/util.js"></script>
<script type="text/javascript" src="../js/admin/admin_user.js"></script>
<script type="text/javascript" src="../lib/jquery.plugins/tablesorter/jquery.tablesorter.js"></script>
<script type="text/javascript" src='../lib/select2/select2.js'></script>
<script type="text/javascript" src='../js/md5.js'></script>

</head>
<body>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12 template_toolbar">
			<button class="btn btn-danger btn-create project_involved_false"  type="button" onclick="displayCreateDiv()">新建用户</button>
			<select class="project_involved_false" id ="searchType" style="margin-bottom:0px;width:80px;line-height:24px;">
			  	<option value=''>全部</option>
			  	<option value='normal'>活动的</option>
			  	<option value='lock'>锁定的</option>
			  	<option value='not_auth'>注册待激活</option>
			  </select>
			  <input id="searchWord" style="margin-bottom:0px;" type="text" placeholder="邮箱或姓名">
			  <button class="btn btn-info" type="button" id="searchUserBtn">go</button>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">
			<table class="tablesorter table table-hover table-striped" id="userListGrid">
				<thead>
		    		<tr>
		    			<th>序号</th><th>姓名</th><th>邮箱</th><th>角色</th><th>创建时间</th><th>操作</th>
		    		</tr>
		    	</thead>
		    	<tbody>
		    	</tbody>
			</table>
		</div>
	</div>
</div>

<!-- 修改div -->
<div id="addOrModifyUserDiv" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h5 id="myModalLabel">新建用户</h5>
  </div>
  <div class="modal-body">
  	<form class="form-horizontal">
  		<div class="control-group">
  			<p id="msgInfo" style="color:red"></p>
		    <label class="control-label" for="input_name">用户姓名:</label>
		    <div class="controls">
		    	<input type="hidden" id="input_user_id"/>
		   	    <input type="text" id="input_name"/>
		    </div>
		</div>
  		<div class="control-group">
		    <label class="control-label" for="input_email" >用户邮箱:</label>
		    <div class="controls">
		   	    <input type="text" id="input_email" disabled="disabled"/>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="input_email_m" >用户角色:</label>
		    <div class="controls">
			    <fieldset>
			   		<label class="radio">
			   	    	<input type="radio" name="input_role" value="normal" checked/>普通用户
			   	   	</label>
			   	    <label class="radio">
			   	    	<input type="radio" name="input_role" value="admin"/>管理员
			   	    </label>
			   	    <label id = "super_role" class="radio">
			   	    	<input type="radio" name="input_role" value="super_admin"/>超级管理员
			   	    </label>
			    </fieldset>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="input_pass" >用户密码:</label>
		    <div class="controls">
		   	    <input type="password" id="input_pass"/>
		    </div>
		</div>
		
		<div class="control-group">
		    <label class="control-label" for="input_pass_again" >确认密码:</label>
		    <div class="controls">
		   	    <input type="password" id="input_pass_again"/>
		    </div>
		</div>
		
<!-- 		<div class="control-group"> -->
<!-- 		    <label class="control-label" for="input_isquit_m">是否离职:</label> -->
<!-- 		    <div class="controls"> -->
<!-- 		    	<label class="radio inline" style="margin-right:10px;"><input type="radio" name="input_isquit_m" value="true">是</label> -->
<!-- 		    	<label class="radio inline" style="margin-right:10px;"><input type="radio" name="input_isquit_m" value="false">否</label> -->
<!-- 		    </div> -->
<!-- 		</div> -->
  	</form>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-primary" onclick="addOrModifyUser()">保存</button>
  </div>
</div>


<!-- 用户表单权限 -->
<div id="userTemRightDiv" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h5>用户表单权限</h5>
  </div>
  <div class="modal-body">
  	 <input type="hidden" id = "userMail"/>
  	 <input type="button" class="btn btn-danger" value="添加表单" onclick="initAllTemplate();"/>
  	 <table style="margin-top:10px;" class="tablesorter table table-hover table-striped">
				<thead>
		    		<tr>
		    			<th>序号</th><th>表单名称</th><th>删除</th>
		    		</tr>
		    	</thead>
		    	<tbody id="temRightBody">
		    	</tbody>
	 </table>
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">确定</button>
  </div>
</div>


<!-- 添加表单 -->
<div id="initAllTemDiv" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="tag modal" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h5 id="initAllTitle">添加表单</h5>
  </div>
  <div class="modal-body">
  	<form class="form-horizontal">
	  	 <input type="hidden" id="userTemMail"/>
	  	 <div class="control-group">
	  	 	 <label style="width:120px;" class="control-label" for="chooseTemplate">选择添加权限表单:</label>
	  	 	 <div class="controls">
			  	 <select style="width:250px; margin-left:-50px;" multiple id= "chooseTemplate">
			  	 </select>
			 </div>
	  	 </div>
  	 </form>
  </div>
  <div class="modal-footer">
  	<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-danger" onclick="addUserTemplate();">确定</button>
  </div>
</div>

</body>
</html>